//
//  AryaCoreModule.swift
//  Pods
//
//  Created by eme on 2017/3/24.
//
//

import Foundation


/// 本模块的名称， 本模块的storyboard 名称必须 与模块名称相同 ,已经用于静态资源的加载回用到
let modularName = "AryaCore"

/// 登陆模块 基础配置文件
public  class AryaCore {
    
    public static var sharedInstance : AryaCore {
        struct Static {
            static let instance : AryaCore = AryaCore()
        }
        return Static.instance
    }
    /// 登陆模块的storyboard
    public static var storyboard:UIStoryboard{
        get{
            return UIStoryboard(name: modularName, bundle: AryaCore.bundle)
        }
    }
    /// 模块中的 首页
    public static var orderForm_Vc:UIViewController{
        get{
            return AryaCore.storyboard.instantiateViewController(withIdentifier: "OrderForm_Vc")
        }
    }
    
    ///供其他模块使用
    public static var bundle:Bundle?{
        get{
            guard let bundleURL = Bundle(for: OrderForm_Vc.self).url(forResource: modularName, withExtension: "bundle") else {
                return nil
            }
            guard let bundle = Bundle(url: bundleURL) else {
                return nil
            }
            return bundle
        }
        
    }
    
    init() {

    }
}
